package cn.xy.base.server.vo;

import cn.xy.base.server.po.SysAdmin;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 表[sys_admin]对应实体类
 *
 * @author auto
 */

@Data
public class SysAdminSimpleListVO {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", dataType = "int")
    private int id;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称", dataType = "String")
    private String nickname;

    /**
     * 头像地址
     */
    @ApiModelProperty(value = "头像地址", dataType = "String")
    private String avatar;

    public SysAdminSimpleListVO(SysAdmin admin) {
        if (admin != null) {
            BeanUtils.copyProperties(admin, this);
        }
    }

}
